package com.tiantai.tea.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tiantai.tea.mapper.TeaRoomMapper;
import com.tiantai.tea.domain.TeaRoom;
import com.tiantai.tea.service.ITeaRoomService;

/**
 * 茶馆管理Service业务层处理
 * 
 * @author handsomedog
 * @date 2024-07-24
 */
@Service
public class TeaRoomServiceImpl implements ITeaRoomService 
{
    @Autowired
    private TeaRoomMapper teaRoomMapper;

    /**
     * 查询茶馆管理
     * 
     * @param id 茶馆管理主键
     * @return 茶馆管理
     */
    @Override
    public TeaRoom selectTeaRoomById(Long id)
    {
        return teaRoomMapper.selectTeaRoomById(id);
    }

    /**
     * 查询茶馆管理列表
     * 
     * @param teaRoom 茶馆管理
     * @return 茶馆管理
     */
    @Override
    public List<TeaRoom> selectTeaRoomList(TeaRoom teaRoom)
    {
        return teaRoomMapper.selectTeaRoomList(teaRoom);
    }

    /**
     * 新增茶馆管理
     * 
     * @param teaRoom 茶馆管理
     * @return 结果
     */
    @Override
    public int insertTeaRoom(TeaRoom teaRoom)
    {
        return teaRoomMapper.insertTeaRoom(teaRoom);
    }

    /**
     * 修改茶馆管理
     * 
     * @param teaRoom 茶馆管理
     * @return 结果
     */
    @Override
    public int updateTeaRoom(TeaRoom teaRoom)
    {
        return teaRoomMapper.updateTeaRoom(teaRoom);
    }

    /**
     * 批量删除茶馆管理
     * 
     * @param ids 需要删除的茶馆管理主键
     * @return 结果
     */
    @Override
    public int deleteTeaRoomByIds(Long[] ids)
    {
        return teaRoomMapper.deleteTeaRoomByIds(ids);
    }

    /**
     * 删除茶馆管理信息
     * 
     * @param id 茶馆管理主键
     * @return 结果
     */
    @Override
    public int deleteTeaRoomById(Long id)
    {
        return teaRoomMapper.deleteTeaRoomById(id);
    }
}
